package com.hamster.tools.i18nManger.events
{
	import flash.events.Event;
	
	public class AppEvent extends Event
	{
		public static const SAVE_CLICK:String = "saveClick";
		public static const CANCEL_CLICK:String = "cancelClick";
		
		public static const SELECT_TARGET_FOLDER:String = "selectTargetFolder";
		public static const OPEN_ITEM_EDITOR_VIEW:String = "openItemEditorView";
		public static const SAVE_ALL_CHANGES_CLICK:String = "saveAllChangesClick";
		
		
		public static const CONFIGURATION_LOAD_REQUEST:String	= "hsConfigurationLoadRequest";
		public static const CONFIGURATION_LOAD_RESPONSE:String	= "hsConfigurationLoadResponse";
		public static const CONFIGURATION_LOAD_FAULT:String		= "hsConfigurationLoadFault";
		public static const CONFIGURATION_SAVE_REQUEST:String	= "hsConfigurationSaveRequest";
		public static const CONFIGURATION_SAVE_RESPONSE:String	= "hsConfigurationSaveResponse";
		public static const CONFIGURATION_SAVE_FAULT:String		= "hsConfigurationSaveFault";
		public static const TRANSLATE_ACCESS_TOKEN_REQUEST:String		= "hsTranslateAccessTokenRequest";
		public static const TRANSLATE_ACCESS_TOKEN_RESPONSE:String		= "hsTranslateAccessTokenResponse";
		public static const TRANSLATE_ACCESS_TOKEN_FAULT:String			= "hsTranslateAccessTokenFault";
		public static const TRANSLATE_REQUEST:String		= "hsTranslateRequest";
		public static const TRANSLATE_RESPONSE:String		= "hsTranslateResponse";
		public static const TRANSLATE_FAULT:String			= "hsTranslateFault";
		public static const SCAN_TARGET_FOLDER_REQUEST:String 	= "hsSelectTargetFolderRequest";
		public static const SCAN_TARGET_FOLDER_RESPONSE:String 	= "hsSelectTargetFolderResponse";
		public static const SAVE_NEW_ITEMS_REQUEST:String		= "hsSaveNewItemsRequest";
		public static const SAVE_NEW_ITEMS_RESPONSE:String		= "hsSaveNewItemsResponse";
		
		public var data:*;
		
		public function AppEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var appEvent:AppEvent = new AppEvent(type, bubbles, cancelable);
			appEvent.data = data;
			return appEvent;
		}
	}
}